﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_PoDataPrint.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_PoDataPrint" %>


<%@ Import Namespace="C.Entities" %>
<%@ Import Namespace="C.Unite" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../js/jquery-1.4.1.min.js"></script>
    <script src="../js/jquery.jqprint-0.3.js"></script>
    <style>
        html {
            font-size: 12px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager runat="server" ID="page1" AutoSizePanelID="pan1" />
        <ext:Panel runat="server" ID="pan1" BodyPadding="5px" Layout="Fit" ShowHeader="false" ShowBorder="false">
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="btnPrint" OnClientClick="PrintHtml();" Text="打印" Icon="Printer"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:ContentPanel runat="server" ID="con1" ShowHeader="false" ShowBorder="false">
                    <style>
                        .box {
                            border-top-width: 1px;
                            border-right-width: 0px;
                            border-bottom-width: 0px;
                            border-left-width: 1px;
                            border-top-style: solid;
                            border-right-style: solid;
                            border-bottom-style: solid;
                            border-left-style: solid;
                            border-top-color: #000000;
                            border-right-color: #000000;
                            border-bottom-color: #000000;
                            border-left-color: #000000;
                        }

                            .box td {
                                border-top-width: 0px;
                                border-right-width: 1px;
                                border-bottom-width: 1px;
                                border-left-width: 0px;
                                border-top-style: solid;
                                border-right-style: solid;
                                border-bottom-style: solid;
                                border-left-style: solid;
                                border-top-color: #000000;
                                border-right-color: #000000;
                                border-bottom-color: #000000;
                                border-left-color: #000000;
                                text-align: center;
                                font-size: 13px;
                                word-break: break-all;
                            }
                    </style>
                    <table width="917" bgcolor="#000000" border="0" cellspacing="0" cellpadding="0" class="box">
                        <tr style="background-color: white; text-align: center;">
                            <td>采购订单号</td>
                            <td>订单类型</td>
                            <td>合同编号</td>
                            <td>供应商编号</td>
                            <td>采购金额</td>
                            <td>申请人</td>
                            <td>交货日期</td>
                            <td>付款方式</td>
                           <%-- <td>状态</td>--%>
                        </tr>
                    <%
                        List<Proj_Podata> list = (List<Proj_Podata>)CacheHelper.ReadIdentify("podata_" + CookInfo.EAdminid());
                        foreach (Proj_Podata item in list)
                        {
              
                    %>
                    <%--<table widht="100%">
            <tr>
                <td>亲爱的<%=item.TrueName %>，非常感谢您在公司的辛苦工作，您<%=item.YEAR %>年<%=item.MONTH %>月工资总额为<%=item.TOSALY %></td>
            </tr>
        </table>--%>
                        <tr style="background-color: white; text-align: center;">
                            <td><%=item.PONBER %></td>
                            <td><%=item.POTYPE %></td>
                            <td><%=item.CONNUB %></td>
                            <td><%=item.VEDNUB %></td>
                            <td><%=item.TAMOUT %></td>
                            <td><%=item.REQTOR %></td>
                            <td><%=item.DLDATE %></td>
                            <td><%=item.PATYPE %></td>
                            <%--<td><%=item.STATUS %></td>--%>
                        </tr>
<%} %>
                    </table>
                    <table width="917" style="padding-top: 5px;">
                        <tr>
                            <td style="border-bottom: 1px dashed #ccc;"></td>
                        </tr>
                    </table>

                    
                </ext:ContentPanel>
            </Items>
        </ext:Panel>


    </form>
    <script>
        function PrintHtml() {
            var c = "<%=con1.ClientID%>";
            $("#" + c).jqprint({
                debug: false,
                importCSS: true,
                printContainer: true,
                operaSupport: true
            });
        }
    </script>
</body>
</html>
